import Layout from '@/views/layout/index'

// 到访记录
const visitRouter = {
    path: '/visit',
    component: Layout,
    name: 'visit',
    meta: {
        title: '到访记录',
        icon: 'iconfont icon-ESGC_yidaofang'
    },
    redirect: "/visit/manage",
    children: [{
        path: 'manage',
        name: 'visitManage',
        component: () => import('@/views/visit/manage'),
        meta: {
            title: '到访记录',
            icon: 'iconfont icon-ESGC_yidaofang',
            api: ['visit'],
            authority: ['list'],
        },
        checkedList: [],
        rights: [{
                value: 'list',
                label: '列表'
            },{
                value: 'edit',
                label: '编辑'
            }]
    },{
      path: 'detail',
      name: 'visitDetail',
      component: () => import('@/views/visit/detail'),
      hidden: true,
      meta: {
        title: '到访详情',
        api: ['visit'],
        authority: ['list', 'edit']
      }
    }]
}

export default visitRouter